package ishaportalserver.apps.regstatus;

import ishaportalserver.shared.apps.regstatus.RegStatusProp;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import com.google.gson.Gson;


@Path("/regstatus/")
public class RegStatus {
	
	@GET	
	public String getRegStatus() {
		IRegStatusRepository repository = new FakeRegStatusRepository();
		
		List<RegStatusProp> all = repository.getAll();
		
		return new Gson().toJson(all);
	}
}
